package cn.com.headfree.callback.call;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.com.headfree.base.controller.ResultData;
import cn.com.headfree.callback.back.DictionaryServerCallBack;

/**
 * @Title DictionaryServerCall.java
 * @Package cn.com.headfree.callback.call
 * @Description 数据字典服务调用请求
 * @author yangwang
 * @date 2019年7月11日 下午14:33:09
 */
@FeignClient(value = "dictionary-server", fallback = DictionaryServerCallBack.class)
public interface DictionaryServerCall {

    /**
     * 根据字典父节点的值获取所有子节点的记录数据接口
     * 
     * @author yangwang
     * @param sysCode
     * @param parentValue
     * @return ResultData
     */
    @RequestMapping("/dictionary-server/dictionary/findDictionaryByParentValue")
    @ResponseBody
    public ResultData findDictionaryByParentValue(@RequestParam("sysCode") String sysCode,
            @RequestParam("parentValue") String parentValue);

}
